<?php	ob_start();
 include_once '../includes/session.php';
 include_once '../includes/constants.php';
 include_once '../includes/functions.php';

 $partners=new partners;
 $partners->connection($host,$user,$pass,$db);


 //include"header.php";

 	$merid 	=	$_GET['id'];


	$sql	=	"select * from partners_merchant where merchant_id=$merid";
	$res	=	mysql_query($sql);

 	while($row=mysql_fetch_object($res)){
         $merchant_id			=	$row->merchant_id;
         $merchant_firstname	=	stripslashes($row->merchant_firstname);
         $merchant_lastname		=	stripslashes($row->merchant_lastname);
         $merchant_company		=	stripslashes($row->merchant_company);
         $merchant_address		=	stripslashes($row->merchant_address);
         $merchant_city			=	stripslashes($row->merchant_city);
         $merchant_country		=	stripslashes($row->merchant_country);
         $merchant_phone		=	stripslashes($row->merchant_phone);
         $merchant_url			=	stripslashes($row->merchant_url);
         $merchant_category		=	stripslashes($row->merchant_category);
         $merchant_status		=	stripslashes($row->merchant_status);
         $merchant_date			=	stripslashes($row->merchant_date);
         $merchant_fax			=	stripslashes($row->merchant_fax);
         $merchant_state		=	stripslashes($row->merchant_state);
         $merchant_zip			=	stripslashes($row->merchant_zip);
         $merchant_taxId		=	stripslashes($row->merchant_taxId);
         $merchant_type			=	stripslashes($row->merchant_type);
         $merchant_currency		=	stripslashes($row->merchant_currency);

         $emailQuery 	= " SELECT login_email FROM partners_login WHERE login_id = $merchant_id AND login_flag='m'";
         $emailResult	= mysql_query($emailQuery);

         if(mysql_num_rows($emailResult)){
         	$emailRow 		 = mysql_fetch_object($emailResult);
            $merchant_email = $emailRow->login_email;
         }
       }


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<HEAD>
<TITLE>Affiliate Network Pro - Admin Panel</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name="generator" content="Namo WebEditor v5.0(Trial)">
<link rel="stylesheet" type="text/css" href="admin.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<script language="javascript" type="text/javascript">
function button1_onclick() {
window.close();
}

</script>

<table border='0' class="tablebdr" cellpadding="0" cellspacing="0" style="border-collapse: collapse"  width="400" id="AutoNumber1" >
  <tr>
    <td colspan="5" class="tdhead" height="19" align="center">
    Merchant's Profile </td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">ID</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_id?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">Email</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_email?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
   <tr>
    <td width="1%" height="15"></td>
    <td width="25%" height="15">Type</td>
    <td width="2%" height="15"><b>:</b></td>
    <td width="65%" height="15"><?=ucwords($merchant_type)?></td>
    <td width="7%" height="15"></td>
  </tr>
   <tr>
    <td width="1%" height="15"></td>
    <td width="25%" height="15">Currency</td>
    <td width="2%" height="15"><b>:</b></td>
    <td width="65%" height="15"><?=$merchant_currency?></td>
    <td width="7%" height="15"></td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">Company Name</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_company?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">First Name</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_firstname?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">
    Last Name</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_lastname?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">Address</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_address?>
    </td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="17"></td>
    <td width="25%" height="17">City</td>
    <td width="2%" height="17"><b>:</b></td>
    <td width="65%" height="17"><?=$merchant_city?></td>
    <td width="7%" height="17"></td>
  </tr>
  <tr>
    <td width="1%" height="17"></td>
    <td width="25%" height="17">State</td>
    <td width="2%" height="17"><b>:</b></td>
    <td width="65%" height="17"><?=$merchant_state?></td>
    <td width="7%" height="17"></td>
  </tr>
   <tr>
    <td width="1%" height="17"></td>
    <td width="25%" height="17">Zip</td>
    <td width="2%" height="17"><b>:</b></td>
    <td width="65%" height="17"><?=$merchant_zip?></td>
    <td width="7%" height="17"></td>
  </tr>
  <tr>
    <td width="1%" height="17"></td>
    <td width="25%" height="17">Country</td>
    <td width="2%" height="17"><b>:</b></td>
    <td width="65%" height="17"><?=$merchant_country?> </td>
    <td width="7%" height="17"></td>
  </tr>
   <tr>
    <td width="1%" height="17"></td>
    <td width="25%" height="17">Tax Id</td>
    <td width="2%" height="17"><b>:</b></td>
    <td width="65%" height="17"><?=$merchant_taxId?></td>
    <td width="7%" height="17"></td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">Phone</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_phone?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">URL</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_url?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">Category</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_category?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="19">&nbsp;</td>
    <td width="25%" height="19">Status</td>
    <td width="2%" height="19"><b>:</b></td>
    <td width="65%" height="19"><?=$merchant_status?></td>
    <td width="7%" height="19">&nbsp;</td>
  </tr>
  <tr>
    <td width="1%" height="11"></td>
    <td width="25%" height="11">Date of Join</td>
    <td width="2%" height="11"><b>:</b></td>
    <td width="65%" height="11"><?=$merchant_date ?></td>
    <td width="7%" height="11"></td>
  </tr>
  <tr>
    <td width="1%" height="15"></td>
    <td width="25%" height="15">Fax</td>
    <td width="2%" height="15"><b>:</b></td>
    <td width="65%" height="15"><?=$merchant_fax?></td>
    <td width="7%" height="15"></td>
  </tr>


  <tr>
    <td height="10" colspan="5" class="tdhead" align="center"><INPUT id=button1 class="textred" type=button align=middle value=close name=button1 onclick="return button1_onclick()"></td>
  </tr>
</table>
</body>
</html>
 <?  //include 'footer.php'; ?>